import { defineStore } from "pinia";
 

//defineStore第一个参数:唯一的,不能重复
export const collapseStore = defineStore('collapseStore', {
    state:()=> {
        return {
            collapse:false
        }
    },
    getters: {
        getCollapse(state) {
          return  state.collapse
        },
    },
    actions: {
        setCollapse(collapse:boolean) {
            this.collapse = collapse;
      }
    }
})